package com.tyk.bookstore.back.task.model.query;

import com.tyk.bookstore.back.task.model.enume.TaskState;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author tyk
 * @description TaskUpdateStateQuery
 */
@Data
public class TaskUpdateStateQuery {
    @Schema(description = "定时任务ID")
    @Min(value = 1)
    @NotNull
    private Long id;
    @Schema(description = "状态")
    @NotNull
    private TaskState state;
}
